﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<hsgsSHXX.Model.qyzl>
@using MvcContrib.UI.Grid;
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>中医院</title>
    <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui.custom.min.js" type="text/javascript"></script>
    
    @if (false)
    {
        <script src="../../../../Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script>
    }

        <script type="text/javascript" language="javascript">
            function iframeAutoFit() {
                var ex;
                try {
                    if (window != parent) {
                        var a = parent.document.getElementsByTagName("IFRAME");
                        for (var i = 0; i < a.length; i++) {
                            if (a[i].contentWindow == window) {
                                var h1 = 0, h2 = 0;
                                if (document.documentElement && document.documentElement.scrollHeight) {
                                    h1 = document.documentElement.scrollHeight;
                                }
                                if (document.body) h2 = document.body.scrollHeight;
                                var h = Math.max(h1, h2);
                                if (window.ActiveXObject) { h += 4; }
                                else { h += 4; }
                                a[i].style.height = h + "px";
                                window.removeEventListener('resize', iframeAutoFit, false); //兼容谷歌浏览器时要去掉RISZE监听
                            }
                        }
                    }
                }
                catch (ex) { }
            }
    </script>
</head>
<body onload="iframeAutoFit()">
    @if (Model.Count > 0)
    {
        <h5>企业资料50万</h5>
    <div>
    
 <table  border="1" cellspacing="1" cellpadding="1" class="grid">
  <tr>
    <th align="center" >姓名</th>
    <th align="center" >性别</th>
    <th align="center" >职务</th>
    <th align="center" >联系电话1</th>
    <th align="center" >联系电话2</th>
    <th align="center" >联系电话3</th>
    <th align="center" >单位</th>
    <th align="center" >行政区划</th>
    <th align="center" >地址</th>
  </tr>
@{foreach (var item in Model)
  {  
  <tr>
    <td align="center">@item.xm</td>
    <td align="center">@item.xb</td>
    <td align="center">@item.zw</td>
    <td align="center">@item.lxdh1</td>
    <td align="center">@item.lxdh2</td>
    <td align="center">@item.lxdh3</td>
    <td align="center">@item.dw</td>
    <td align="center">@item.xzqh</td>
    <td align="center">@item.dz</td>
  </tr>
  } 
} 
</table>
        

    </div>

    <div class="clear">
        <span style="float: left; ">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>&nbsp;&nbsp;
        @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "left", FirstPageText = "&lt;&lt;", LastPageText = "&gt;&gt;" }, new { style = "" })
    </div>

    }
</body>
</html>
